cpuid
A library to parse the x86 CPUID instruction, written in rust with no external
dependencies. The implementation closely resembles the Intel CPUID manual
description. The library works in no_std
environments. Some additional cargo
features require std
(e.g., pretty printing, serialization).
- For Intel platforms: The code should be in sync with the March 2018 revision of the Intel Architectures SDM.
- For AMD platforms it should be in sync with the AMD64 systems manual no. 24594, Revision 3.32 (March 2021).
Library usage
use CpuId;
let cpuid = new;
if let Some = cpuid.get_vendor_info
let has_sse = cpuid.get_feature_info.map_or;
if has_sse
if let Some = cpuid.get_cache_parameters else
cpuid
binary
raw-cpuid
ships with a cpuid
binary that can be installed to inspect the
output of the CPUID instruction on a host system.
To install, use:
The cli
feature is currently required to build the binary version due to
cargo limitations.